import React, { useState, useEffect } from 'react'
import classNames from 'classnames'
import styles from './index.scss'
interface props {
	message?: string
}

function App({ message }: props) {
	const [count, setCount] = useState(0)

	useEffect(() => {
		console.log(count)
	}, [count])

	function action() {
		setCount(1)
	}
	return (
		<div className={styles.wrapper}>
			<div className={classNames('classNam1', 'classNam2')} onClick={action}>
				{message}
			</div>
		</div>
	)
}

export default App
